﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ComponentModel;
namespace XEvents.Library
{
    [Serializable]
    public class MapValue : XEventBase
    {
        #region Private Members
        internal string name;
        internal Guid object_package_guid;
        internal int map_key;
        internal string map_value;
        #endregion

        #region Public Properties
        /// <summary>
        /// Map Name
        /// </summary>
        [ReadOnlyAttribute(true)]
        public string Name
        {
            get { return name; }
        }

        /// <summary>
        /// Map Key
        /// </summary>
        [ReadOnlyAttribute(true)]
        public int Map_Key
        {
            get { return map_key; }
        }

        /// <summary>
        /// Map Value
        /// </summary>
        [ReadOnlyAttribute(true)]
        public string Map_Value
        {
            get { return map_value; }
        }

        #endregion

        #region Constructor
        internal MapValue(dm_xe_map_values mv, SqlServer server)
            : base(server)
        {
            this.name = mv.name;
            this.object_package_guid = mv.object_package_guid;
            this.map_key = mv.map_key;
            this.map_value = mv.map_value;
        }

        private MapValue()
            : base(null)
        { }
        #endregion
    }
}
